package com.baba.bracelet.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Date;

/**
 * @author wulongbo
 * @version 1.0
 * @date 2020/6/12 13:40
 * @description
 */
@Data
@TableName("tbl_pressure")//@TableName中的值对应着表名
@ApiModel(value = "血压数据")
public class PressureEntity {
    /**
     * 主键id，UUID
     */
    @ApiModelProperty(value = "主键id", name = "id")
    @TableId(type = IdType.UUID)
    private String id;

    /**
     * 用户id
     */
    @ApiModelProperty(value = "用户id", name = "user_id")
    private String userId;


    /**
     * 血压高压 [收缩压]
     */
    @ApiModelProperty(value = "血压高压 [收缩压]",name = "systolic")
    private Integer systolic;


    /**
     * 血压低压 [舒张压]
     */
    @ApiModelProperty(value = "血压低压 [舒张压]",name = "diastolic")
    private Integer diastolic;



    /**
     * 创建时间
     */
    @ApiModelProperty(value = "创建时间",name = "create_time")
    private Date createTime;
}
